import Mock from 'mockjs'
import loginAPI from './login'
// import articleAPI from './article'
// import article_tableAPI from './article_table'
// import remoteSearchAPI from './remoteSearch'

// 登录相关
Mock.mock('/login/mock', 'post', loginAPI.loginByEmail)
// Mock.mock(/\/login\/logout/, 'post', loginAPI.logout)
Mock.mock(RegExp('/info/mock' + '.*'), 'get', loginAPI.getInfo)
Mock.mock(RegExp('/menus/mock' + '.*'), 'get', loginAPI.getMenus)
// // 文章相关
// Mock.mock(/\/article\/list/, 'get', articleAPI.getList)
// Mock.mock(/\/article\/detail/, 'get', articleAPI.getArticle)

// // table example相关
// Mock.mock(/\/article_table\/list/, 'get', article_tableAPI.getList)
// Mock.mock(/\/article_table\/p/, 'get', article_tableAPI.getPv)

// // 搜索相关
// Mock.mock(/\/search\/user/, 'get', remoteSearchAPI.searchUser)

export default Mock
